package com.jt.demo11.controller;

import com.jt.demo11.Service.UserService;
import com.jt.demo11.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired
    private UserService userService;

    public void addUser() {
        User user = new User(2022, "新年快乐", 18, "女");
        userService.addUser(user);
    }
}
